<template>
    <div class="page-header">
        <div class="page-header-logo" @click="goToMain">
            <el-image class="page-header-logo-images" src="src/assets/images/camera.svg" />
            <span class="page-header-logo-text"> 轻影 </span>
        </div>
        <div class="page-header-share" @click="goToGitee">
            <el-image class="page-header-share-images" src="src/assets/images/gitee.svg" />
        </div>
    </div>
</template>
<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const goToMain = () => {
    router.push('/')
}
const goToGitee = () => {
    window.open('https://gitee.com/zhangchaohuiget/image-meta-app', '_blank');
}
</script>
<style scoped lang="scss">
.page-header {
    background-color: rgb(255 255 255);
    border-radius: 0.4rem;
    height: 10%;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &-logo {
        display: flex;
        align-items: center;

        &-images {
            width: 4rem;
            margin-right: 1rem;
        }

        &-text {
            font-weight: 700;
            font-size: 1.2rem;
            font-family: cursive;
        }
    }

    &-share {
        display: flex;
        align-items: center;

        &-images {
            width: 3rem;
            margin-right: 1rem;
        }
    }
}
</style>